var sendServer = (urlParams, callback, me) =>{
  // const baseUrl="http://127.0.0.1:8080/hf/"
  const baseUrl="http://192.168.0.103:8080/hf/"
  var params ={};
  params = urlParams.send;
  const requestTask = wx.request({
    url:baseUrl+urlParams.url,
    data:params,
    method:'POST',
    success:(res)=>{
      if (typeof(callback) == 'function') {
        callback(res.data)
      }
    }
  })
}

var sendServerGet = (urlParams, callback, me) =>{
  // const baseUrl="http://127.0.0.1:8080/hf/"
  const baseUrl="http://192.168.0.103:8080/hf/"
  var params ={};
  params = urlParams.send;
  const requestTask = wx.request({
    url:baseUrl+urlParams.url,
    data:params,
    method:'GET',
    success:(res)=>{
      if (typeof(callback) == 'function') {
        callback(res.data)
      }
    }
  })
}
module.exports = {
  sendServer: sendServer,
  sendServerGet:sendServerGet
}